import http from '../util/request.js'
export default {
    // 根据关键词查询演唱会
    search: (keyword) => {
        return http({
            url: '/api/concert/search',
            method: 'get',
            params: { keyword }
        })
    },
    // 获取推荐演唱会
    recommend: () => {
        return http({
            url: '/api/concert/recommend',
            method: 'get'
        })
    },
    // 根据ID获取演唱会详情
    getConcertById: (id) => {
        return http({
            url: `/api/concert/${id}`,
            method: 'get'
        })
    }
}
